home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / advsys.arc / SAMPLE.ADV < prev   
Text File  |  1986-01-16  |  4KB  |  117 lines

  1. ; SAMPLE.ADV
  2. ;
  3. ; This is a VERY simple sample adventure that uses the "BASIC.ADI" simple
  4. ; runtime support code.  It isn't interesting to play, but does illustrate
  5. ; most of the features of the adventure authoring system.  Try compiling
  6. ; it using the command:
  7. ;
  8. ;        A>ADVCOM SAMPLE
  9. ;
  10. ; When the compile has finished, run the adventure using the command:
  11. ;
  12. ;        A>ADVINT SAMPLE
  13. ;
  14. ; You should then see the initial welcome message and a description of
  15. ; your initial location.  You can use the direction names to move from
  16. ; one location to the next (or the abreviations N,S,E,W).  You should try
  17. ; manipulating objects using TAKE and DROP.  You can manipulate more than
  18. ; one at a time by using the conjunction AND.  You can also GIVE an object
  19. ; to another creature like the DOG or CAT.  You can instruct another
  20. ; creature to perform an action like:
  21. ;
  22. ;       CAT, GIVE THE DOG THE KEY
  23. ;
  24. ; You can also experiment with using adjectives to distinguish between
  25. ; objects (there is more than one KEY in this adventure).
  26.  
  27. (adventure sample 1)
  28.  
  29. (define welcome "Welcome to the sample adventure.\n")
  30.  
  31. @basic.adi
  32.  
  33. (actor adventurer
  34.   (noun me)
  35.   (property
  36.     initial-location livingroom))
  37.  
  38. (actor dog
  39.   (noun dog)
  40.   (adjective small)
  41.   (property
  42.     description "There is a small dog here."
  43.     short-description "a small dog"
  44.     initial-location kitchen))
  45.  
  46. (actor cat
  47.   (noun cat)
  48.   (property
  49.     description "There is a cat here."
  50.     short-description "a cat"
  51.     initial-location kitchen))
  52.  
  53. (location storage-room
  54.   (property
  55.     description "You are in a small storage room with many empty shelves.
  56.                  The only exit is a door to the west."
  57.     short-description "You are in the storage room."
  58.     west hallway))
  59.  
  60. (location hallway
  61.   (property
  62.     description "You are in a long narrow hallway. There is a door to the
  63.                  east into a small dark room.  There are also exits on both
  64.                  the north and south ends of the hall."
  65.     short-description "You are in the hallway."
  66.     east storage-room
  67.     north kitchen
  68.     south livingroom))
  69.  
  70. (location kitchen
  71.   (property
  72.     description "This is a rather dusty kitchen.  There is a hallway to the
  73.                  south and a pantry to the west."
  74.     short-description "You are in the kitchen."
  75.     south hallway
  76.     west pantry))
  77.  
  78. (location pantry
  79.   (property
  80.     description "This is the kitchen pantry.  The kitchen is through a 
  81.                  doorway to the east."
  82.     short-description "You are in the pantry."
  83.     east kitchen))
  84.  
  85. (location livingroom
  86.   (property
  87.     description "This appears to be the livingroom.  There is a hallway to
  88.                  the north and a closet to the west."
  89.     short-description "You are in the livingroom"
  90.     north hallway
  91.     west closet))
  92.  
  93. (location closet
  94.   (property
  95.     description "This is the livingroom closet.  The livingroom is through
  96.                  a doorway to the east."
  97.     short-description "You are in the closet."
  98.     east livingroom))
  99.  
  100. (thing rusty-key
  101.   (noun key)
  102.   (adjective rusty)
  103.   (property
  104.     description "There is a rusty key here."
  105.     short-description "a rusty key"
  106.     initial-location storage-room))
  107.  
  108. (thing silver-key
  109.   (noun key)
  110.   (adjective small silver)
  111.   (property
  112.     description "There is a small silver key here."
  113.     short-description "a small silver key"
  114.     initial-location closet))
  115.  
  116.                                                   
  117.